package com.mall.domain.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @description: 购物车视图对象
 * @author 勾新杰
 * @version 1.0
 * @date 2024/11/24 21:23
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "购物车条目视图对象")
public class CartVO {
    @Schema(description = "购物车条目id")
    private Long id;
    @Schema(description = "用户id")
    private Long userId;
    @Schema(description = "商品id")
    private Long itemId;
    @Schema(description = "商品名称")
    private String name;
    @Schema(description = "商品图片")
    private String image;
    @Schema(description = "商品价格")
    private Double price;
    @Schema(description = "购买数量")
    private Integer quantity;
    @Schema(description = "商品库存")
    private Integer stock;
    @Schema(description = "商品分类id")
    private Long categoryId;
    @Schema(description = "商品分类名称")
    private String categoryName;
}
